var http = require('http');

http.createServer(function(request, response) {
    // sent HTTP header
    // HTTP status 200 : OK
    // type: text/plain
    response.writeHead(200, {'Content-Type': 'text/plain'});

    // sent data "Hello World"
    response.end('Hello World\n');
}).listen(8080);

// information at consle
console.log('Server running at http://127.0.0.1:8080/');